package cn.lili.controller.order;


import cn.lili.common.utils.ResultUtil;
import cn.lili.common.vo.ResultMessage;
import cn.lili.modules.order.order.entity.dos.RankingAwardDetails;
import cn.lili.modules.order.order.service.IRankingAwardDetailsService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 排名奖品领取明细 前端控制器
 * </p>
 *
 * @author zhushiqing
 * @since 2023-12-21
 */
@AllArgsConstructor
@RestController
@RequestMapping("/order/rankingAwardDetails")
public class RankingAwardDetailsController {

    private IRankingAwardDetailsService rankingAwardDetailsService;


    /**
     * 领取排名奖励
     *
     * @return 是否成功
     */
    @PostMapping("/claimThePrize")
    public ResultMessage<Object> claimThePrize(@RequestBody RankingAwardDetails rankingAwardDetails) {
        rankingAwardDetailsService.claimThePrize(rankingAwardDetails);
        return ResultUtil.success();
    }

}
